@extends('home.layouts._center')
@section('content')
    <div class="mod_main">
        <div class="jib_xinx_kuang">
            <div class="shand_piaot">我的收藏</div>
            <div class="slideTxtBox_shouc">
                <div class="bd">
                    <ul>
                        <div>
                            <div class="history_bd" style="margin-top: -25px;">
                                <dl>
                                    <dt>收藏商品：</dt>
                                    <dd>
                                        <a href="javascript:;" class="beij_color">总数({{count($collects)}})</a>
                                    </dd>
                                </dl>
                            </div>
                        </div>
                        <div class="uc_overdueTable">
                            <div class="diyig_s">
                                <ol>
                                    @foreach($collects as $collect)
                                    <li>
                                        <div class="overflow">
                                            <div class="shouc_img">
                                                <a href="{{route('home.content',$collect->good)}}"><img src="{{$collect->good->picture[0]}}"></a>
                                            </div>
                                        </div>
                                        <div class="col280">
                                            <h2><a href="{{route('home.content',$collect->good)}}"target="_blank">{{$collect->good->title}}</a></h2>
                                            <div class="price_box"><span>￥{{$collect->good->price}}</span></div>
                                            <div class="price_box"><span class="font_aide">收藏时间：{{$collect->created_at}}</span></div>
                                            <div class="price_box">
                                                <a href="{{route('home.collect.make',$collect->good)}}" class="button_grey">取消收藏</a>
                                            </div>
                                        </div>
                                        <div class="youh_d">有货</div>
                                    </li>
                                        @endforeach
                                </ol>
                            </div>
                        </div>
                    </ul>
                </div>
            </div>
        </div>
    </div>
@endsection
